pub fn new_birthday_probability(n: u32) -> f64 {
    // 这里写逻辑
    // todo!()
    if n <= 1 {
        return  0.0;
    }
    
    let mut probability_no_same = 1.0;
    for i in 1..n {
        probability_no_same *= (365 - i) as f64 / 365.0;
    }

    1.0 - probability_no_same
}
